/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */
import type { MaFormItem } from '@mineadmin/form'
import hasAuth from '@/utils/permission/hasAuth.ts'
import MaDictSelect from '@/components/ma-dict-picker/ma-dict-select.vue'
import { concat } from 'lodash-es'

export default function getFormItems(formType: 'add' | 'edit' = 'add', t: any, model: any): MaFormItem[] {
    

      return concat([
    { label: '所属用户id', prop: 'user_id', render: () => MaDictSelect, renderProps: { multiple: false }, itemProps: { rules: [
    { required: true, message: '请输入所属用户id' },
  ] } },
    { label: '游客姓名', prop: 'name', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '游客姓名'}) }, itemProps: { rules: [
    { required: true, message: '请输入游客姓名' },
  ] } },
    { label: '游客手机号', prop: 'phone', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '游客手机号'}) }, itemProps: { rules: [
    { required: true, message: '请输入游客手机号' },
  ] } },
    { label: '游客身份证', prop: 'id_card', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '游客身份证'}) }, itemProps: { rules: [
    { required: true, message: '请输入游客身份证' },
  ] } },
  ]);
}
